/*
* acooly.cn Inc.
* Copyright (c) 2017 All Rights Reserved.
* create by ouwen
* date:2017-09-20
*/
package com.yiji.fintech.musfinance.entity;


import com.acooly.core.common.domain.AbstractEntity;
import com.acooly.core.utils.Money;
import com.yiji.fintech.musfinance.common.annotation.FieldQuery;
import com.yiji.fintech.musfinance.common.enums.StatusEnum;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.NotEmpty;

import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Table;
import javax.validation.constraints.Size;

/**
 * center_inst_channel_api Entity
 *
 * @author ouwen
 * Date: 2017-09-20 10:59:17
 */
@Getter
@Setter
@Entity
@Table(name = "center_inst_channel_api")
public class InstChannelApi extends AbstractEntity {
	/** serialVersionUID */
	private static final long serialVersionUID = 1L;


	/** 渠道API编码 */
	@NotEmpty
	@Size(max=32)
	@FieldQuery
    private String gatewayChannelApi;

	/** 渠道API CODE 描述 */
	@Size(max=128)
    private String gatewayChannelApiDesc;

	/** 渠道限额 */
    private Money quota;

	/** 日限 */
    private Money dayQuota;

    /** 渠道费率 */
	private Money rate;

	/** 银行编码 */
	@Size(max=60)
    private String instBankId;

	/** 渠道状态 */
    @Enumerated(EnumType.STRING)
    private StatusEnum status;

	/** 扩展字段 */
	@Size(max=4000)
    private String extendField;

}
